package org.dromara.system.domain.bo;

import org.dromara.system.domain.CmdSupplierContainer;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 供应商容器关联关系业务对象 cmd_supplier_container
 *
 * @author Lion Li
 * @date 2025-08-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = CmdSupplierContainer.class, reverseConvertGenerate = false)
public class CmdSupplierContainerBo extends BaseEntity {

    /**
     * 主键
     */
    private Long id;

    /**
     * 供应商id
     */
    @NotNull(message = "供应商id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long supplierId;

    /**
     * 供应商编码
     */
    @NotBlank(message = "供应商编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String supplierCode;

    /**
     * 供应商名称
     */
    @NotBlank(message = "供应商名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String supplierName;

    /**
     * 容器id
     */
    @NotNull(message = "容器id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long containerId;

    /**
     * 容器编码
     */
    @NotBlank(message = "容器编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String containerCode;

    /**
     * 容器名称
     */
    @NotBlank(message = "容器名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String containerName;

    /**
     * 当前状态
     */
    @NotBlank(message = "当前状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 绑定时间
     */
    @NotNull(message = "绑定时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date bindTime;

    /**
     * 解绑时间
     */
    @NotNull(message = "解绑时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date noBindTime;

    /**
     * 操作人
     */
    @NotBlank(message = "操作人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String operatorName;


}
